package com.itheima.作业.车;

public class taxi  extends car{

    public String carCompany;

    public taxi() {
    }

    public taxi(String carCompany) {
        this.carCompany = carCompany;
    }

    public String getCarCompany() {
        return carCompany;
    }

    public void setCarCompany(String carCompany) {
        this.carCompany = carCompany;
    }
    @Override//输出相应对顾客的提醒问候语
    public void stop(){
        System.out.println("欢迎乘坐" + carCompany + "的" + "，祝您旅途愉快！");
    }
}
